/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package checkers.businessLogic.game;

/**
 *
 * @author artinshahverdian
 */
public class Board {

    private Field[][] field = new Field[8][8];

    public Board() {
    }

    /**
     * @return the field
     */
    public Field[][] getFields() {
        return field;
    }

    /**
     * @param field the field to set
     */
    public Field getField(Position position) {
        return field[position.row][position.column];
    }

    /**
     * @param field the field to set
     */
    public Piece getPieceAtPosition(Position position) {
        return field[position.row][position.column].getPiece();
    }
}
